#include"List.h"
   
void ListTest1()
{
    LNode* plist;
    plist = ListInit(plist);
    ListPrint(plist);
    //尾插
    ListPushBack(plist, 1);
    ListPushBack(plist, 2);
    ListPushBack(plist, 3);
    ListPushBack(plist, 4);
    ListPushBack(plist, 5);
    ListPushBack(plist, 6);
    ListPrint(plist);
    //头插
    ListPushFront(plist, 1);
    ListPushFront(plist, 2);
    ListPushFront(plist, 3);
    ListPushFront(plist, 4);
    ListPushFront(plist, 5);
    ListPushFront(plist, 6);
    ListPrint(plist);
    //尾删
    ListPopBack(plist);
    ListPopBack(plist);
    ListPopBack(plist);
    ListPopBack(plist);
    ListPrint(plist);
    //头删
     ListPopFront(plist);
     ListPopFront(plist);
     ListPopFront(plist);
     ListPopFront(plist);
    ListPrint(plist);
    //任意插

    //任意删除

    //判空
    printf("%d\n", ListEmpty(plist));
    //销毁
    ListDestory(plist);
    printf("%d\n", ListEmpty(plist));
}

int main()
{
    ListTest1();
    return 0;
}